package com.qingcloud.adminbackend.mapper;

import com.qingcloud.adminbackend.entity.upgrade.UpgradeSpecialHisDTO;
import com.qingcloud.adminbackend.entity.upgrade.UpgradeSpecialRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ITdUpgradeSpecialHisMapper {

    List<UpgradeSpecialHisDTO> search(@Param("upgradeSpecial") UpgradeSpecialRequest upgradeSpecial, @Param("offset") Long offset,
                                      @Param("pageSize") Integer pageSize);

    Integer save(UpgradeSpecialHisDTO upgradeSpecial);

    Integer update(UpgradeSpecialHisDTO upgradeSpecial);

    Integer deleteByIdList(List<String> ids);

    Integer count(@Param("upgradeSpecial") UpgradeSpecialRequest upgradeSpecial);

    UpgradeSpecialHisDTO findUpgradeSpecialHisById(@Param("id") String id);

    /**
     * 批量插入
     *
     * @param hisList
     * @return
     */
    Integer batchSave(@Param("list") List<UpgradeSpecialHisDTO> hisList);
}
